#include<stdio.h>
/**
    Sample Input:
    2
    1 2
    3 4
    Sample Output:
    3
    7
*/
int main(){
    int n,a,b;
    scanf("%d",&n);
    while(n--){
        scanf("%d%d",&a,&b);
        printf("%d\n",a+b);
    }
    return 0;
}
